package com.example.deertrip;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Pay_Suc_Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pay_suc);
        Button button_bu1;
        Button button_bu2;
        Button button_bu3;
        button_bu3=(Button) findViewById(R.id.bt_3);
        button_bu1=(Button) findViewById(R.id.bt_1);
        button_bu2=(Button) findViewById(R.id.bt_2);

        button_bu1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent=new Intent(Pay_Suc_Activity.this, HotelActivity.class);
                startActivity(intent);}

        });
        button_bu2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent=new Intent(Pay_Suc_Activity.this, MainActivity.class);
                startActivity(intent);}

        });
        button_bu3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent=new Intent(Pay_Suc_Activity.this, OrderActivity.class);
                startActivity(intent);}

        });
    }
}